module SQS4Rails; end 

module SQS4Rails::Publisher
  
  @@queue = ''
  
  def publish_to(queue_name)
    @@queue = queue_name.is_a?( Symbol ) ? queue_name.to_s : queue_name   
    SQS4Rails::SQSLogger.new_queue(@@queue)
  end
  
  def publish(message)
    SQS4Rails::SQSLogger.publish(@@queue, message)
  end
end